package com.syni.mdd.sjb.common.datatreaure.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity.DxshAppIndustry;
import com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity.DxshAppManageType;
import com.syni.mdd.sjb.common.component.mybatis.dxshapp.mapper.DxshAppManageTypeMapper;
import com.syni.mdd.sjb.common.component.utils.common.utils.ResultMapHelper;
import com.syni.mdd.sjb.common.datatreaure.service.DxshAppManageTypeService;
import com.syni.mdd.sjb.common.datatreaure.constants.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lcc
 * @since 2020-09-28
 */
@Service
public class DxshAppManageTypeServiceImpl extends ServiceImpl<DxshAppManageTypeMapper, DxshAppManageType> implements DxshAppManageTypeService {

    @Autowired
    DxshAppManageTypeMapper dxshAppManageTypeMapper;

    @Override
    public Map<String, Object> getAllManageType() {
        QueryWrapper queryWrapper = new QueryWrapper();
        List<DxshAppIndustry> dxshAppIndustries = dxshAppManageTypeMapper.selectList(queryWrapper);
        return ResultMapHelper.success(dxshAppIndustries, ResultMsg.MSG_GET_SUCCESS);
    }
}
